# Remove launch permissions from the AMIs after every 5 days
0 0 */5 * * root TMPDIR=`mktemp -d /tmp/purgeamis.XXXXXX` && pushd $TMPDIR && git clone https://pagure.io/releng.git && cd releng/scripts && AWS_ACCESS_KEY='{{ ec2_image_delete_access_key_id }}' AWS_SECRET_ACCESS_KEY='{{ ec2_image_delete_access_key }}' ./clean-amis.py --change-perms && popd && rm -rf $TMPDIR

# Delete the AMIs after every 10 days.
0 0 */10 * * root TMPDIR=`mktemp -d /tmp/purgeamis.XXXXXX` && pushd $TMPDIR && git clone https://pagure.io/releng.git && cd releng/scripts && AWS_ACCESS_KEY='{{ ec2_image_delete_access_key_id }}' AWS_SECRET_ACCESS_KEY='{{ ec2_image_delete_access_key }}' ./clean-amis.py --delete && popd && rm -rf $TMPDIR
